﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ModuleExternalProducers.ViewModels;

namespace ModuleExternalProducers.Views
{
    /// <summary>
    /// Interaction logic for ExternalProducersView.xaml
    /// </summary>
    public partial class ProducersView : UserControl, IProducersView
    {
        private ExternalProducersViewModel tmpVm;

        public ProducersView(IProducersViewModel ViewModel)
        {
            InitializeComponent();

            this.DataContext = ViewModel;
            tmpVm = (ExternalProducersViewModel)ViewModel;
        }

        public ViewModels.IProducersViewModel ViewModel
        {
            get;
            set;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            tmpVm.DoLoadCategories(0);
        }
    }
}
